package cn.tedu.admin.mall.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class CategoryAddParam implements Serializable {
    @NotBlank(message = "类别名称不能为空")
    @ApiModelProperty("类别名称")
    String name;
    @ApiModelProperty("排序序号")
    Long sort;
    @ApiModelProperty("是否显示")
    Long isDisplay;
    @ApiModelProperty("父类别id")
    Long parentId;
    //这个字段前端不用设置,前端工程师 设置10
    //Long depth;
    //Boolean isParent;
}
